package d1_midterm_examination.d3_thirdquestion;

import java.time.LocalDate;

//用于封装每一天
public class Day {
    private LocalDate localDate;//时间
    private boolean flag;//是否是休息日

    public Day() {
    }

    public Day(boolean flag) {
        this.flag = flag;
    }

    public Day(LocalDate localDate) {
        this.localDate = localDate;
    }

    public Day(LocalDate localDate, boolean flag) {
        this.localDate = localDate;
        this.flag = flag;
    }

    public LocalDate getLocalDate() {
        return localDate;
    }

    public void setLocalDate(LocalDate localDate) {
        this.localDate = localDate;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return "Day{" +
                "localDate=" + localDate +
                ", flag=" + flag +
                '}';
    }
}
